""" 
@coding  : utf-8
@Time    : 2023/5/18 17:31
@Author  : Rumou
@File    : code.py
@Description: 
"""
import sys


class Func:
    @staticmethod
    def func1():
        print("this is func1")

    @staticmethod
    def func2():
        print("this is func2")

    def choice(self, sys_input):
        if hasattr(self, sys_input):
            return getattr(self, sys_input)
        else:
            return lambda: print("函数不存在")


sys_input = sys.argv[1]
print(f"传递进来的参数:{sys_input}")
func = Func()
func_get = func.choice(sys_input)
func_get()
